class Process {
  int id;
  String name;
  String path;
  String type;
  String img;
  double value;
  int label;
  int state; // 0  1(成功)  2(失败)
  String error;

  Process(
      {this.id = 0,
      required this.name,
      required this.path,
      required this.type,
      required this.img,
      required this.label,
      required this.state,
      this.error = "null",
      this.value = 60.0});

  @override
  String toString() {
    return 'Process{id: $id, name: $name, path: $path, type: $type, value: $value, state: $state, error: $error}';
  }
}
